<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>login</title>
</head>
<body>
	<s:if test="hasFieldErrors()">
		<s:iterator value="fieldErrors">
			<font color=red><s:property value="value[0]" /></font><br>
		</s:iterator>
	</s:if>
	<form action="<%=request.getContextPath()%>/main.action" method="post">
		<input type="text" name="username" /><br> 
		<input type="password" name="password" /><br> 
		<input type="submit" value="登录">
	</form>
</body>
</html>